﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.XtraGrid.Views.Grid;
using ActionServices;

namespace SchoolManagementSystem.Controls
{
    class SetEditAbleGridColumn
    {
        public static void SetColumnEditAble(GridView gridView1, string Column, object _Model)
        {
            if (_Model.GetType() == typeof(Student_ResultDetailActionService))
            {
                gridView1.Columns[Column].OptionsColumn.AllowEdit = true;
                gridView1.OptionsBehavior.Editable = true;
            }
        }
    }
}
